Optimal. Leaf size=29 \[ \frac{(A+B) \sec (c+d x) (a \sin (c+d x)+a)}{d}-a B x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0488888, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.069, Rules used = {2855, 8} \[ \frac{(A+B) \sec (c+d x) (a \sin (c+d x)+a)}{d}-a B x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2855
Rule 8
Rubi steps
\begin{align*} \int \sec ^2(c+d x) (a+a \sin (c+d x)) (A+B \sin (c+d x)) \, dx &=\frac{(A+B) \sec (c+d x) (a+a \sin (c+d x))}{d}-(a B) \int 1 \, dx\\ &=-a B x+\frac{(A+B) \sec (c+d x) (a+a \sin (c+d x))}{d}\\ \end{align*}
Mathematica [B] time = 0.339527, size = 85, normalized size = 2.93 \[ \frac{a \left (2 (A+B) \sin \left (\frac{d x}{2}\right )+B d x \sin \left (c+\frac{d x}{2}\right )-B d x \cos \left (\frac{d x}{2}\right )\right )}{d \left (\cos \left (\frac{c}{2}\right )-\sin \left (\frac{c}{2}\right )\right ) \left (\cos \left (\frac{1}{2} (c+d x)\right )-\sin \left (\frac{1}{2} (c+d x)\right )\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.064, size = 54, normalized size = 1.9 \begin{align*}{\frac{1}{d} \left ({\frac{aA}{\cos \left ( dx+c \right ) }}+aB \left ( \tan \left ( dx+c \right ) -dx-c \right ) +aA\tan \left ( dx+c \right ) +{\frac{aB}{\cos \left ( dx+c \right ) }} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.5162, size = 76, normalized size = 2.62 \begin{align*} -\frac{{\left (d x + c - \tan \left (d x + c\right )\right )} B a - A a \tan \left (d x + c\right ) - \frac{A a}{\cos \left (d x + c\right )} - \frac{B a}{\cos \left (d x + c\right )}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.82678, size = 184, normalized size = 6.34 \begin{align*} -\frac{B a d x -{\left (A + B\right )} a +{\left (B a d x -{\left (A + B\right )} a\right )} \cos \left (d x + c\right ) -{\left (B a d x +{\left (A + B\right )} a\right )} \sin \left (d x + c\right )}{d \cos \left (d x + c\right ) - d \sin \left (d x + c\right ) + d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} a \left (\int A \sec ^{2}{\left (c + d x \right )}\, dx + \int A \sin{\left (c + d x \right )} \sec ^{2}{\left (c + d x \right )}\, dx + \int B \sin{\left (c + d x \right )} \sec ^{2}{\left (c + d x \right )}\, dx + \int B \sin ^{2}{\left (c + d x \right )} \sec ^{2}{\left (c + d x \right )}\, dx\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.3602, size = 49, normalized size = 1.69 \begin{align*} -\frac{{\left (d x + c\right )} B a + \frac{2 \,{\left (A a + B a\right )}}{\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 1}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]